//
//  Re_DesignCollectionViewCell.m
//  Beauty
//
//  Created by Snow on 16/8/31.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "Re_DesignCollectionViewCell.h"
#import "GXMacro.h"
@implementation Re_DesignCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imageOfGoods = [[UIImageView alloc] init];
        [self.contentView addSubview:_imageOfGoods];
    }
    return self;
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    [_imageOfGoods mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.contentView.mas_top).mas_equalTo(5);
        make.left.mas_equalTo(self.contentView.mas_left);
        make.right.mas_equalTo(self.contentView.mas_right);
        make.height.mas_equalTo(self.contentView.mas_height).mas_equalTo(-10);
    }];

}

@end
